package text;

import java.io.FileNotFoundException;
import java.io.FileReader;

import com.google.gson.JsonIOException;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;

public class New {

	public static void main(String[] args) {
		String str = "http://api.zpzk100.com/client/product_detail?id=100";
		JsonParser parse = new JsonParser();
		try {
			JsonObject json = (JsonObject)parse.parse(new FileReader("tianmao.json"));
			System.out.println(json.get("brand").getAsString());
		} catch (JsonIOException | JsonSyntaxException | FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
}
